package jdbcinterface;

import java.sql.*;

import rmi.RemoteMetaData;
import rmi.ResultSetMetaDataAdapter;


public class GoggleMetaData extends ResultSetMetaDataAdapter {
	private RemoteMetaData rmd;

	public GoggleMetaData(RemoteMetaData md) {
		rmd = md;
	}

	public int getColumnCount() throws SQLException {
		try {
			return rmd.getColumnCount();
		}
		catch(Exception e) {
			throw new SQLException(e.toString() );
		}
	}

	public String getColumnName(int column) throws SQLException {
		try {
			return rmd.getColumnName(column);
		}
		catch (Exception e) {
			throw new SQLException(e.toString() );
		}
	}

	public int getColumnType(int column) throws SQLException {
		try {
			return rmd.getColumnType(column);
		}
		catch (Exception e) {
			throw new SQLException(e.toString() );
		}
	}

	public int getColumnDisplaySize(int column) throws SQLException {
		try {
			return rmd.getColumnDisplaySize(column);
		}
		catch (Exception e) {
			throw new SQLException(e.toString() );
		}
	}
}

